package person

import (
	"d-serv-go/server/core/bean"
	"d-serv-go/server/core/db"
	"d-serv-go/server/core/serv"
)

type PersonServ struct {
	serv.CommServ
}

//func (p *PersonServ) Save(paramBean *db.ParamBean) *bean.OutBean {
//	return bean.NewOutBean()
//}

func (p *PersonServ) BeforeQuery(paramBean *db.ParamBean) {
	//ctx := local.Get("fctx")
	//log.Info("调用 PersonServ BeforeQuery func", paramBean, ctx)
}

func (p *PersonServ) DoJob(paramBean *db.ParamBean) *bean.OutBean {
	//ctx := local.Get("fctx")
	//log.Info("调用 PersonServ DoJob func", paramBean, ctx)
	return bean.NewOutBean()
}

func (p *PersonServ) Get(paramBean *db.ParamBean) *bean.OutBean {
	outBean := bean.NewOutBean()
	//key := paramBean.GetStr("KEY")
	//redis.Redis("").Get().Do()
	//value := redis.Redis("").Get("WHOLE_DATA_IN_KAFKA_A_DEPT:XD11130304:1901300012")
	//outBean.Set("data", value.String())
	return outBean
}
